﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Packager
{
	public partial class FormFile : Form
	{
		public FormFile()
		{
			InitializeComponent();
		}

		public Milan.Deploy.Package.File OurFile = new Milan.Deploy.Package.File();

		private void buttonBrowse_Click(object sender, EventArgs e)
		{
			OpenFileDialog openFileDialog = new OpenFileDialog();
			openFileDialog.FileName = textBoxSource.Text;
			if (openFileDialog.ShowDialog() == DialogResult.OK)
			{
				textBoxSource.Text = openFileDialog.FileName;
			}
		}

		private void FormFile_Load(object sender, EventArgs e)
		{
			textBoxSource.Text = OurFile.Source;
			textBoxDestination.Text = OurFile.Destination;
		}

		private void buttonOK_Click(object sender, EventArgs e)
		{
			OurFile.Source = textBoxSource.Text;
			OurFile.Destination = textBoxDestination.Text;
		}

	}
}
